using System;
using System.Data;
using System.Collections;

namespace Shraga.BLL
{
	public class Connection
	{
		#region Data Members

		private int		m_nConnectionId;
		private int		m_nOrigionNodeId;
		private int		m_nDestinationNodeId;
		private int		m_nPathId;
		private String  m_sNodeName;
		private String	m_sPathName;
		private bool	m_bIsMust;		
		private int		m_nResultId;
		private String	m_sResultName;
		private String  m_sDescription;
		private bool	m_bIsPositive;

		#endregion

		#region Properties

		public int		ConnectionId		{ get { return m_nConnectionId; } }
		public int		OrigionNodeId		{ get { return m_nOrigionNodeId; } }
		public int		DestinationNodeId	{ get { return m_nDestinationNodeId; } }
		public int		PathId				{ get { return m_nPathId; } }
		public String	NodeName			{ get { return m_sNodeName; } }		
		public String	PathName			{ get { return m_sPathName; } }
		public bool		IsMust				{ get { return m_bIsMust; } }
		public int		ResultId			{ get { return m_nResultId; } }
		public String	ResultName			{ get { return m_sResultName; } }
		public String   Description			{ get { return m_sDescription; } }
		public bool		IsPositive			{ get { return m_bIsPositive; } }

		#endregion

		#region Constructors

		public Connection(int ConnectionId, int OrigionNodeId, int DestinationNodeId, int PathId,
						  String NodeName, String PathName, bool IsMust, int ResultId, 
						  String ResultName, String Description, bool IsPositive)
		{
			m_nConnectionId			= ConnectionId;
			m_nOrigionNodeId		= OrigionNodeId;
			m_nDestinationNodeId	= DestinationNodeId;
			m_nPathId				= PathId;
			m_sNodeName				= NodeName;
			m_sPathName				= PathName;
			m_bIsMust				= IsMust;
			m_nResultId				= ResultId;
			m_sResultName			= ResultName;
			m_sDescription			= Description;
			m_bIsPositive			= IsPositive;
		}

		#endregion
	}
}